home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 May: Tool Chest / Apple_Developer_CD_Series_May_1994_Tool_Chest.iso / Tool Chest / Interfaces / Universal Interfaces / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-10  |  504 b   |  35 lines  |  [TEXT/MPS ]

  1. /*
  2.     stddef.h -- Common definitions
  3.     
  4.     Copyright Apple Computer,Inc.    1987-1990, 1993
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STDDEF__
  10. #define __STDDEF__
  11.  
  12. typedef int ptrdiff_t;
  13.  
  14. #ifndef __size_t__
  15. #define __size_t__
  16. #ifdef powerc
  17. typedef unsigned long size_t;
  18. #else
  19. typedef unsigned int size_t;
  20. #endif /* powerc */
  21. #endif
  22.  
  23. #ifndef __wchar_t__
  24. #define __wchar_t__
  25. typedef short wchar_t;
  26. #endif
  27.  
  28. #ifndef NULL
  29. #define NULL 0
  30. #endif
  31.  
  32. #define offsetof(structure,field) ((size_t)&((structure *) 0)->field)
  33.  
  34. #endif
  35.